import { createDiscreteApi } from 'naive-ui';
import { DiscreteApiType } from 'naive-ui/es/discrete/src/interface';

export const useFeedback = (key: DiscreteApiType[]) => {
	const feedback = createDiscreteApi(key, {
		messageProviderProps: {
			keepAliveOnHover: true,
		},
	});

	return {
		...feedback,
	};
};
